/*年轻人，只管向前看，不要管自暴自弃者的话*/

import 'package:flutter_plugin/net/data/user_data.dart';

///create by itz on 2023/10/29 11:31
///desc : "entry":{"user":{},"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsImljcCI6Ii9oZWFsdGgtbWFuYWdlciIsImlzcyI6ImhlYWx0aC1tYW5hZ2VyIiwic24iOiIxMTAyNTYiLCJlbnYiOiJsb2NhbCIsImV4cCI6MTcxNDAzMTI5NiwiaWF0IjoxNjk4NDc5Mjk2fQ.PoaOGDT7XT9p6JSuEU8oPKNpEcabKk95DaCmHqHRkEU",
///"notSetPassword":true}
class LoginData {
  UserData? user;
  String? token;
  bool? notSetPassword;

  LoginData({this.user, this.token, this.notSetPassword});

  LoginData.fromJson(Map<String, dynamic> json) {
    user = UserData.fromJson(json['user']);
    token = json['token'];
    notSetPassword = json['notSetPassword'];
  }

  @override
  String toString() {
    return 'LoginData{user: $user, token: $token, notSetPassword: $notSetPassword}';
  }
}
